<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE HTML >
<html>
	<head>
		<title>项目管理系统</title>
		<link rel="stylesheet" type="text/css" href="static/css/bootstrap.min.css">
		<style type="text/css">
		body{
			padding-top:60px;
			background-image:url(static/img/bg.png);
		}
		</style>
	</head>
	<body>
		<div class="navbar navbar-fixed-top">
			<div class="navbar-inner">
				<div class="container">
					<a class="brand" href="#">Kaishengit PMS</a>
				</div>
			</div>
		</div>
		<div class="container">
 			 <div class="row">
					<div class="span9">
						<div>
							<c:if test="${param.code==10001 }">不能有空值</c:if>
						</div>
						<form class="form-horizontal" action="task.jspx?m=add" method="post">
					        <fieldset>
					        <legend>添加新任务</legend>
					        <div class="control-group">
					            <label class="control-label" for="input01">任务名称</label>
					            <div class="controls">
					              <input name="name" class="span5" id="input01" type="text">
					            </div>
					        </div>
					        <div class="control-group">
					            <label class="control-label" for="input01">开始时间</label>
					            <div class="controls">
					              <input name="begintime" class="span5" id="input01" type="text" value="2012-01-01 00:00:00">
					            </div>
					       </div>
					       <div class="control-group">
					            <label class="control-label" for="input01">截止时间</label>
					            <div class="controls">
					              <input name="endtime" class="span5" id="input01" type="text" value="2012-01-01 00:00:00">
					            </div>
					       </div>
					       <div class="control-group">
					            <label class="control-label" for="input01">任务描述</label>
					            <div class="controls">
					              <textarea name="describe" class="span5" rows="8"></textarea>
					            </div>
					       </div>
					       <div class="control-group">
					            <label class="control-label" for="multiSelect">状态</label>
					            <div class="controls">
					              <select id="multiSelect" name="status">
					                <option selected="selected">新任务</option>
					                <option>进行中</option>
					                <option>已完成</option>
					              </select>
					            </div>
					       </div>
					       <div class="control-group">
					            <label class="control-label" for="multiSelect">级别</label>
					            <div class="controls">
					              <select id="multiSelect" name="rank">
					                <option selected="selected">重要紧急</option>
					                <option>重要不紧急</option>
					                <option>紧急不重要</option>
					                <option>不紧急不重要</option>
					              </select>
					            </div>
					        </div>
					        <div class="control-group">
					            <label class="control-label" for="multiSelect">负责人</label>
					            <div class="controls">
						            <select id="multiSelect" name="manager">
						              	<option selected="selected"></option>
						                <c:forEach items="${userList }" var="user">
		                					<option value="${user.id }">${user.name }</option>
		                				</c:forEach>
						            </select>
					            </div>
					        </div>
					          
					        <div class="form-actions">
					           <button type="submit" class="btn btn-primary">保存</button>
					           <a class="btn" href="project.jspx">返回</a> 
					        </div>
				       </fieldset>
 			       </form>          
			   </div>
           </div>
        </div>
	</body>
</html>
	
